4.3
MEDIUM CVSS 3.1
CVE-2025-13372
Potential SQL injection in FilteredRelation column aliases on PostgreSQL
Description

An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27. `FilteredRelation` is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet.annotate()` or `QuerySet.alias()` on PostgreSQL. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Stackered for reporting this issue.

INFO

Published Date :

Dec. 2, 2025, 4:15 p.m.

Last Modified :

Dec. 2, 2025, 5:16 p.m.

Remotely Exploit :

Yes !

Source :

6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
Affected Products

The following products are affected by CVE-2025-13372 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Djangoproject django
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM 134c704f-9b21-4f2e-91b3-4a467353bcc0
Solution
Update Django to a patched version to fix SQL injection in column aliases.
  • Update Django to version 5.2.9 or later.
  • Update Django to version 5.1.15 or later.
  • Update Django to version 4.2.27 or later.
Public PoC/Exploit Available at Github

CVE-2025-13372 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-13372.

URL Resource
https://docs.djangoproject.com/en/dev/releases/security/
https://groups.google.com/g/django-announce
https://www.djangoproject.com/weblog/2025/dec/02/security-releases/
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-13372 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

CVE-2025-13372

Python

Updated: 20 hours, 23 minutes ago
0 stars 0 fork 0 watcher
Born at : Dec. 3, 2025, 10:13 a.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-13372 vulnerability anywhere in the article.

  • CybersecurityNews
Multiple Django Vulnerabilities Enables SQL Injection and Denial-of-Service Attacks

The development team has officially released essential security updates to address two significant vulnerabilities found in the popular web framework. These issues range from high to moderate severity ... Read more

Published Date: Dec 03, 2025 (1 day ago)
  • Daily CyberSecurity
Chrome 143 Stable Fixes 13 Flaws: High-Severity V8 Type Confusion Earns $11,000 Bounty

Google has officially promoted Chrome 143 to the stable channel for Windows, macOS, and Linux, rolling out a critical security update that addresses 13 vulnerabilities. The release, versioned as 143.0 ... Read more

Published Date: Dec 03, 2025 (1 day, 4 hours ago)
  • Daily CyberSecurity
Django Flaw (CVE-2025-13372) Allows SQL Injection in PostgreSQL FilteredRelation

The maintainers of Django, the high-level Python web framework that powers some of the internet’s largest sites, have released an important security update addressing two distinct vulnerabilities. The ... Read more

Published Date: Dec 03, 2025 (1 day, 4 hours ago)
  • Daily CyberSecurity
CISA Warns: Critical Iskra iHUB Flaw (CVE-2025-13510) Allows Unauthenticated Smart Metering Takeover

A critical security vacuum has been discovered in smart metering infrastructure, potentially leaving utility networks exposed to remote takeover. The Cybersecurity and Infrastructure Security Agency ( ... Read more

Published Date: Dec 03, 2025 (1 day, 4 hours ago)

The following table lists the changes that have been made to the CVE-2025-13372 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92

    Dec. 02, 2025

    Action Type Old Value New Value
    Added Description An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27. `FilteredRelation` is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet.annotate()` or `QuerySet.alias()` on PostgreSQL. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Stackered for reporting this issue.
    Added CWE CWE-89
    Added Reference https://docs.djangoproject.com/en/dev/releases/security/
    Added Reference https://groups.google.com/g/django-announce
    Added Reference https://www.djangoproject.com/weblog/2025/dec/02/security-releases/
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Dec. 02, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 4.3
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact